package com.mercury.pattern._16_observer;

/**
 *
 */
public class Client {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();


        Observer observer = new CurrentCondition();
        Observer observer1 = new Baidu();
        Observer observer2 = new Sina();
        weatherData.registerObserver(observer);
        weatherData.registerObserver(observer1);
        weatherData.registerObserver(observer2);


        weatherData.setData(11,12,13);



    }
}